package com.shinektv.vod.ksclib;

/**
 * 歌词一个字信息
 */
public class KscSegment {
    private final String TAG = this.getClass().getSimpleName();

    public KscSegment(long starttime, long duration_time, String word, int lineindex, int wordindex) {
        this.start_time = starttime;
        this.stop_time = this.start_time + duration_time;
        this.duration = duration_time;
        this.word = word;
        this.line_index = lineindex;
        this.word_index = wordindex;
    }

    /**
     * 字的开始时间 ms
     */
    private long start_time = 0;
    /**
     * 字的结束时间 ms
     */
    private long stop_time = 0;
    /***
     * 字的持续时间 ms
     */
    private long duration = 0;
    /**
     * 文字的内容
     */
    private String word = "";
    /**
     * 文字的第几行
     */
    private int line_index = -1;
    /**
     * 该行的第一个文字
     */
    private int word_index = -1;

    public long getStart_time() {
        return start_time;
    }

    public long getStop_time() {
        return stop_time;
    }

    public long getDuration() {
        return duration;
    }

    public String getWord() {
        return word;
    }

    public int getLine_index() {
        return line_index;
    }

    public int getWord_index() {
        return word_index;
    }
}
